package com.kk.miaosha.service;

import com.kk.miaosha.Vo.AdminVo;
import com.kk.miaosha.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.kk.miaosha.securityEntity.UserDetail;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 用户信息表 服务类
 * </p>
 *
 * @author kk
 * @since 2020-09-18
 */
public interface UserService extends IService<User> {
    User findOne(String username);

    Map<String ,Object> login(String username, String password);

    Map<String, Object> register(User user);

    void delUserCache(UserDetail userDetail);

    List<AdminVo> getAdminVoList(List<User> list);

    void updateAdmin(User user);
}
